package com.v2future.sjt.collegecheckingattendance.rollcall.bean;

import android.widget.Checkable;

import java.io.Serializable;

/**
 * Created by minnie on 16/1/20.
 * 老师获取点名课时
 */
public class SubjectBean implements Serializable,Checkable{


    private String courseId;
    private String courseName;
    private String courseNumber;
    private boolean checked;

    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getCourseNumber() {
        return courseNumber;
    }

    public void setCourseNumber(String courseNumber) {
        this.courseNumber = courseNumber;
    }

    /**
     * Change the checked state of the view
     *
     * @param checked The new checked state
     */
    @Override
    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    /**
     * @return The current checked state of the view
     */
    @Override
    public boolean isChecked() {
        return checked;
    }

    /**
     * Change the checked state of the view to the inverse of its current state
     */
    @Override
    public void toggle() {
        checked = !checked;
    }
}
